<template>
  <el-scrollbar>
    <div class="p-5">
      <el-collapse v-model="defaultOpenList">
        <el-collapse-item title="访问" name="source">
          <el-descriptions :column="1" border>
            <el-descriptions-item label="哪来">test</el-descriptions-item>
            <el-descriptions-item label="平台">test</el-descriptions-item>
            <el-descriptions-item label="IP">test</el-descriptions-item>
            <el-descriptions-item label="地区">test</el-descriptions-item>
            <el-descriptions-item label="时间">test</el-descriptions-item>
            <el-descriptions-item label="浏览器">test</el-descriptions-item>
          </el-descriptions>
        </el-collapse-item>
        <el-collapse-item title="名片" name="card">
          <el-descriptions :column="1" border>
            <el-descriptions-item label="账号"><el-input /></el-descriptions-item>
            <el-descriptions-item label="邮箱"><el-input /></el-descriptions-item>
            <el-descriptions-item label="手机"><el-input /></el-descriptions-item>
          </el-descriptions>
        </el-collapse-item>
        <el-collapse-item title="备注" name="remark">
          <el-descriptions :column="1">
            <el-descriptions-item>
              <el-input type="textarea" :rows="5" />
            </el-descriptions-item>
          </el-descriptions>
        </el-collapse-item>
        <el-collapse-item title="其他操作" name="operation">
          <el-descriptions :column="1">
            <el-descriptions-item>
              <el-button>加入黑名单</el-button>
            </el-descriptions-item>
          </el-descriptions>
        </el-collapse-item>
      </el-collapse>
    </div>
  </el-scrollbar>
</template>

<script setup lang="ts">
let defaultOpenList = ['source']
</script>

<style scoped>
:deep(.el-descriptions__label) {
  width: 70px;
}

:deep(.el-collapse-item__content) {
  padding-bottom: 15px;
}

:deep(.el-descriptions__cell) {
  padding-bottom: 0;
}
</style>
